{% extends 'baes.html'%}
{% block style %}
	<style>
		h1{
			
			font-family: '楷体' !important; 
		}
		.mydiv{
			background-color: #eeeeee;
			width: 100vw !important;
			padding-left:20vw !important; 
            margin-bottom: 10px;
		}
		th{
			background: #eee;
		}
		.mybutton{
			margin-top:10px;
			margin-right: 10px;
			margin-bottom:10px;  
		}
        .myonly{
            padding-left:15px !important;
        }
	</style>
{% endblock %}
{% block content %}
<div class="container mydiv">
	<h1>修改视频信息</h1>
</div>
<div class="container">
    <form class="form-horizontal" role="form" method="post" action="/update_video/{{video.id}}">
        <div class="form-group">
            <label for="firstname" class="col-sm-2 control-label">名称:</label>
            <div class="col-sm-2">
            <input type="text" class="form-control" name="title" id="firstname" value="{{video.title}}">
            </div>
        </div>
        <div class="form-group">
            <label for="firstname1" class="col-sm-2 control-label">播放次数:</label>
            <div class="col-sm-2">
            <input type="text" class="form-control" name="hits" id="firstname1" value="{{video.hits}}">
            </div>
        </div>
        <div class="form-group">
            <label for="firstname2" class="col-sm-2 control-label">老师:</label>
             <div class="col-lg-6">
				<div class="input-group">
					<input type="text" class="form-control input1" name="name" value="{{teacher.name}}">
					<div class="input-group-btn">
						<button type="button" class="btn btn-default dropdown-toggle testbtn" data-toggle="dropdown">
							{{teacher.name}}
							<span class="caret"></span>
						</button>
						<ul class="dropdown-menu pull-right">
                            {% for teacher in teachers%}
                            <li><a href="#">{{teacher.name}}</a></li>
                            {% endfor %}
						</ul>
					</div><!-- /btn-group -->
				</div><!-- /input-group -->
			</div><!-- /.col-lg-6 -->
        </div>
        <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">备注:</label>
            <div class="col-sm-6">
            <textarea type="text" class="form-control" name="adstract" id="lastname" placeholder="请输入备注">{{video.adstract}}</textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-primary">提交</button>
            </div>
        </div>
    </form>
</div>
{% endblock %}
{% block script %}
<script type="text/javascript" src="/static/course.js"></script>
{% endblock %}